<?php

namespace yiike\company\backend\controllers;
use yiike\company\model\DayCompany;
use dmstr\bootstrap\Tabs;
use yii\helpers\Url;
/**
* This is the class for controller "DayCompanyController".
*/
class DayCompanyController extends \yiike\company\backend\controllers\base\DayCompanyController
{
    public function actionIndex()
    {
        $dataProvider = new \yii\data\ActiveDataProvider([
            'query' => DayCompany::find()->where(['company_id'=>1]),
        ]);

        Tabs::clearLocalStorage();

        Url::remember();
        \Yii::$app->session['__crudReturnUrl'] = null;

        return $this->render('index', [
            'dataProvider' => $dataProvider,
        ]);
    }
}
